<template>
	<view class="crossCourse">
		<view class="BGIMG" :style="{'background-image':`url(${URL}${objectData.Cover})`}"></view>
		<view class="content">
			<view class="Title">
				{{objectData.Title}}
			</view>
			<view class="StudyCount">
				{{objectData.StudyCount}}人学习过
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			objectData: {
				type: Object,
				default: {}
			}
		},
		data() {
			return {
				URL: this.$config.domain.staticUrl,
			}
		},
	}
</script>

<style lang="scss">
	.crossCourse {
		box-sizing: border-box;
		padding: 20rpx;
		background-color: #fff;
		display: flex;
		justify-content: flex-start;

		.BGIMG {
			border-radius: 6rpx;
			background-repeat: no-repeat;
			background-size: 100%;
			width: 270rpx;
			height: 164rpx;
			overflow: hidden;
			margin-right: 16rpx;
		}

		.content {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			box-sizing: border-box;
			padding: 3rpx 0rpx;

			.Title {
				color: #000000;
				font-size: 32rpx;
				white-space: normal;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				min-height: 70rpx;
				font-family: PingFang SC-Bold;
			}

			.StudyCount {
				color: #999999;
				font-size: 28rpx;
				font-family: PingFang SC-Bold;
			}
		}
	}
</style>